cmake_minimum_required(VERSION 3.4.1)

set(
	PATH_TO_SUPERPOWERED
	CACHE STRING ""
)


message(${ANDROID_ABI})

file(GLOB CPP_FILES "*.cpp")
file(GLOB C_FILES "*.c")

add_library(
	SuperpoweredExample
	SHARED
	${CPP_FILES}
	${C_FILES}
	Timer.c
	${PATH_TO_SUPERPOWERED}/AndroidIO/SuperpoweredAndroidAudioIO.cpp
)

include_directories(src/main/jni)
include_directories(${PATH_TO_SUPERPOWERED})

target_link_libraries(
    SuperpoweredExample
    log
    android
    OpenSLES
    ${PATH_TO_SUPERPOWERED}/libSuperpoweredAndroid${ANDROID_ABI}.a
)